

void listemp()
{
    EMP *emp1;
    printf("\n资料库中的员工信息列表\n");
    bound('_',40);
    emp1=emp_first;
    while(emp1) 
    {
        printf("工号：%d\n",emp1->num);
        printf("职务：%s\n",emp1->duty);
        printf("姓名：%s\n",emp1->name);
        printf("性别：%s\n",emp1->sex);
        printf("年龄：%d\n",emp1->age);
        printf("文化程度：%s\n",emp1->edu);
        printf("工资：%d\n",emp1->salary);
        printf("办公电话：%s\n",emp1->tel_office);
        printf("家庭电话：%s\n",emp1->tel_home);
        printf("移动电话：%s\n",emp1->mobile);
        printf("QQ号码：%s\n",emp1->qq);
        printf("住址:%s\n",emp1->address);  
        bound('_',40);
        emp1=emp1->next;      
    }    
    printf("\n显示完毕，按任意键退出！\n");
    getch();
    return;
}
